package org.yoao.crm.business.service;

import java.util.List;
import java.util.Map;

import org.yoao.crm.struts.form.RoleForm;

/**
 * @author yxwonline.com
 * @description 
 * @date 2010-7-31 下午01:27:35
 */
public interface IRoleService {
	public List view(int startRow, int endRow, Map map) throws Exception;
	public List getRoles() throws Exception;
	public int getDataCount(Map map) throws Exception;
	public RoleForm getRole(String id)throws Exception;
	public List getAllChildRole(String currRoleId)throws Exception;
	public RoleForm add(RoleForm form) throws Exception;
	public RoleForm modify(RoleForm form) throws Exception;
	public void delete(String id) throws Exception;
	
	public boolean isHaveChildRole(String roleId) throws Exception;
	
	public String getAllParentRole(String currRoleId) throws Exception;
}